package cn.maihe.elg.operation.model.vo.system;

import cn.maihe.elg.operation.repository.entity.KtCustomerVo;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * @Description
 * @Author WJH
 * @Date 2022/09/26
 */
@Getter
@Setter
public class OrgKtCustomerVO extends KtCustomerVo {
    //获取token时发送短信验证码
    private String smsCode;
    //获取token时返回的操作Id
    private String opId;

    /**
     * 机构法人凯特信息
     */
    private KtCustomerVo legalVo;

    public static OrgKtCustomerVO build(KtCustomerVo orgVo, KtCustomerVo legalVo) {
        OrgKtCustomerVO orgKtCustomerVO = new OrgKtCustomerVO();
        BeanUtils.copyProperties(orgVo, orgKtCustomerVO);
        orgKtCustomerVO.setLegalVo(legalVo);
        return orgKtCustomerVO;
    }
}
